package com.corelib.mvp.demo.login.demo.login.model;

import com.corelib.mvp.model.IBaseModel;

/**
 * Created by lenovo on 2016/12/27.
 */
public class UserModel implements IUserModel{
    private String account;
    private String pas;

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public String getPas() {
        return pas;
    }

    public void setPas(String pas) {
        this.pas = pas;
    }

    @Override
    public boolean login(String account, String pas) {
        if("admin".equals(account)&&"admin".equals(pas)){
            return  true;
        }
        return false;
    }
}
